import java.util.Random;

public class Udsagnsord
{
   ///////////////////////////// fields //////////////////////// 
  private String udsagnsordet = "udsagnsord";
  //private String[] strArrayUdsagnsord = { "cykler", "hopper", "danser", "skyder" };
  private String[] strArrayUdsagnsord;
  private ReadTextFiles readTextFilesReader;
  
  
    /////////////// consructors ////////////////////////////////////
  
  public Udsagnsord()
  {
    readTextFilesReader = new ReadTextFiles();
    strArrayUdsagnsord = readTextFilesReader.getStringArrayWithVerbs();
    Random r = new Random();
    int index = r.nextInt(strArrayUdsagnsord.length);
    
    udsagnsordet = strArrayUdsagnsord[index] + "r";            
    }
    
      ///////////////////////////// methods ////////////////////////
  
  /* Method to return a string containing udsagnsordet
   * 
   * @return String containing udsagsnsordet
   */
  
  public String toString()
  {
   String output = udsagnsordet;
   
   return output;
  }
}